package com.itheima.web.controller.ums;

import com.itheima.result.ResultData;
import com.itheima.service.ums.UmsMemberLevelService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("memberLevel")
public class UmsMemberLevelController {
    @DubboReference
    private UmsMemberLevelService umsMemberLevelService;
    @GetMapping("list")
    public ResultData list(Integer defaultStatus){
       return umsMemberLevelService.defaultStatusLiat(defaultStatus);
    }
}
